<%@ page import="com.yhp.bean.Users" %>
<%@ page import="com.yhp.util.PeopleUtil" %><%--
  Created by IntelliJ IDEA.
  User: xiaomi
  Date: 2021/12/20
  Time: 21:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Update</title>
</head>
<body>
<%
    //袁海鹏
    Users user = (Users) request.getAttribute("user");
%>
   <h1>update.jsp,欢迎您:${sessionScope.u1.userName}；当前在线人数<%=PeopleUtil.PEOPLE_ON_LINE%>
       <a href="/usersServlet?key=loginout">退出</a>
   </h1>

<form action="/usersServlet?key=updateuser" method="post">
    userid:<input type="text" name="uid" readonly value="${user.userId}"><br>
    username:<input type="text" name="uname" value="${user.userName}"><br>
    sex:<input type="radio" name="usex" value="男" ${"男"==user.sex?"checked":""} >男
    <input type="radio" name="usex" value="女" ${"女"==user.sex?"checked":""} >女 <br>
    age:<input type="text" name="uage" value="${user.age}"><br>
    password:<input type="text" name="upass" value="${user.passWord}"><br>
    <input type="submit" value="提交">
</form>

</body>
</html>
